<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'UserApi\Controller\RegisterApi' 	=>'UserApi\Controller\RegisterApiController',	
            'UserApi\Controller\EnterframeApi' 	=>'UserApi\Controller\EnterframeApiController',	
            'UserApi\Controller\SubmitwinnerApi' 	=>'UserApi\Controller\SubmitwinnerApiController',	
		),
    ),
    // The following section is new` and should be added to your file
    'router' => array(
        'routes' => array(		
            'Register' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/Register[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'UserApi\Controller\RegisterApi',
                    ),
                ),
            ),
			'entertoframe' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/entertoframe[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'UserApi\Controller\EnterframeApi',
                    ),
                ),
            ),
			'submitwinner' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/submitwinner[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'UserApi\Controller\SubmitwinnerApi',
                    ),
                ),
            ),
	    ),
    ),
    'view_manager' => array(
        'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
);